import datetime
class DateTime:
    def qxname(self):
        year = datetime.date.today().year
        month = datetime.date.today().month
        day = datetime.date.today().day
        if day<=17:
            return ("year"+str(year)+"month"+str(month))
        elif day >17:
            if month <12:
                return ("year"+str(year)+"month"+str(month+1))
            elif month ==12:
                return ("year"+str(year+1)+"month"+str(1))

    def MkdirYear(self):
        year = datetime.date.today().year
        month = datetime.date.today().month
        day = datetime.date.today().day
        if day<=17:
            return ("year"+str(year))
        elif day >17:
            if month <12:
                return ("year"+str(year))
            elif month ==12:
                return ("year"+str(year+1))

    def MkdirMonth(self):
        year = datetime.date.today().year
        month = datetime.date.today().month
        day = datetime.date.today().day
        if day<=17:
            return ("month"+str(month))
        elif day >17:
            if month <12:
                return ("month"+str(month+1))
            elif month ==12:
                return ("month1")


    def Yearnum(self):
        year = datetime.date.today().year
        month = datetime.date.today().month
        day = datetime.date.today().day
        if day<=17:
            return (str(year))
        elif day >17:
            if month <12:
                return (str(year))
            elif month ==12:
                return (str(year+1))

    def MonthNum(self):
        year = datetime.date.today().year
        month = datetime.date.today().month
        day = datetime.date.today().day
        if day<=17:
            return (month)
        elif day >17:
            if month <12:
                return (month+1)
            elif month ==12:
                return 1
